﻿@model FileUpload.Models.UserViewModel
@{
    ViewData["Title"] = "New Page";
}
<h2>@ViewData["Title"]</h2>

<form asp-controller="Home" role="form" asp-action="New" enctype="multipart/form-data" method="post">
    <div asp-validation-summary="All" class="text-danger"></div>
    <div class="form-group">
        <label asp-for="Name"></label>
        <input type="text" class="form-control" asp-for="Name"/>
        <span asp-validation-for="Name" class="text-danger"></span>
    </div>
    <div class="form-group">
        <label asp-for="IdNum"></label>
        <input type="text" class="form-control" asp-for="IdNum"/>
        <span asp-validation-for="IdNum" class="text-danger"></span>
    </div>
    <div class="form-group">
        <label asp-for="IdCardImg"></label>
        <input type="file" asp-for="IdCardImg" multiple/>
        <span asp-validation-for="IdCardImg" class="text-danger"></span>
        <p class="help-block">上传。</p>
    </div>
    <button type="submit" class="btn btn-default">提交</button>
</form>